// 优惠卷
import request from "../utils/request";

// 优惠券列表  manager/coupon/list
export const CouponList=async (data)=>{
	return request.postRequest("manager/coupon/list",data)
}

// 优惠券搜索  manager/coupon/list
export const CouponSearch=async (data)=>{
	return request.postRequest("manager/coupon/list",data)
}

// 添加优惠券  manager/coupon/insert
export const CouponInsert=async (data)=>{
	return request.postRequest("manager/coupon/insert",data)
}

// 更新优惠券  manager/coupon/update
export const CouponUpdate=async (data)=>{
	return request.postRequest("manager/coupon/update",data)
}

// 删除优惠券  manager/coupon/delete
export const CouponDelete=async (data)=>{
	return request.postRequest("manager/coupon/delete",data)
}

// 优惠券领取记录  manager/couponUser/list
export const CouponUserList=async (data)=>{
	return request.postRequest("manager/couponUser/list",data)
}

// 优惠券领取记录中的搜索  manager/couponUser/list
export const CouponUserSearch=async (data)=>{
	return request.postRequest("manager/couponUser/list",data)
}

// 订单详情  manager/couponUser/orderList
export const CouponOrderList=async (data)=>{
	return request.postRequest("manager/couponUser/orderList",data)
}

